Ext.define("App.activiti.task.view.TaskEditor", {
    extend: 'Extend.window.EditWindow',
    alias: 'widget.TaskEditor',
    config: {
        entity: 'entity',
        defaults: {
            columnWidth: 1
        },
        window: {
            title: '请假审批',
            width: 800,
            height: 500,
            resizable: false
        }
    },
    items: [{
        xtype: 'hidden',
        name: 'id'
    }, {
        xtype: 'hidden',
        name: 'vacation.id'
    }, {
        xtype: 'numberfield',
        name: 'vacation.days',
        fieldLabel: '请假时长',
        allowBlank: false,
        blankText: '请假时长为必填字段，不能为！',
        beforeLabelTextTpl: ['<span style="color:red;">*</span>']
    }, {
        xtype: 'textarea',
        name: 'comment',
        fieldLabel: '审批意见'
    }, {
        xtype: 'fieldcontainer',
        fieldLabel: ' ',
        defaultType: 'radiofield',
        defaults: {
            flex: 1
        },
        width:200,
        layout: 'hbox',
        items: [
            {
                boxLabel: '不通过',
                name: 'result',
                inputValue: '0'
            }, {
                boxLabel: '通过',
                name: 'result',
                inputValue: '1'
            },
        ]
    }]
})
